package com.wdj.creation.prototype.pattern.shallclone;

/**
 * @ClassName WeeklyLog
 * @Description
 * @Author wdj
 * @Date 2020/12/14 21:46
 * @Version 1.0
 **/
public class WeeklyLog implements Cloneable {
    private Attachment attachment;
    private String name;
    private String date;
    private String content;

    @Override
    public WeeklyLog clone(){
        Object object = null;
        try{
            object = super.clone();
            return (WeeklyLog) object;
        }catch (CloneNotSupportedException e){
            System.out.println("不支持复制");
            return null;
        }
    }


    public Attachment getAttachment() {
        return attachment;
    }

    public void setAttachment(Attachment attachment) {
        this.attachment = attachment;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
